<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- <%
        String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%> --%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>
<%-- <%@ includefile="menu.jsp"%> --%>
<title>企业工单管理系统</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript" src="statics/js/jquery.js"></script>
<script type="text/javascript">
	$(function() {
		$("input[name='enter']").click(function() {
			var projectId =$("select option:selected").val();
			if (projectId != "" && projectId != null){
				alert("1"+projectId+"1");
			location.href = "addOrder.html?projectId=" + encodeURI(projectId);
			}else{
			alert("请选择项目！");
			}
		});
	});
</script>
</head>
<body>
	<div style="width:auto height:auto" float:left><jsp:include
			page="menu.jsp" flush="true"></jsp:include></div>
	<div style="width:auto height:auto" float:right>
		<table border="1" align="center" width="50%" hight="80%">
			<tr align="center">
				<td colspan="2" align="center"><h2>
						企业工单管理系统
						</h1>
				</td>
			</tr>
			<tr align="center">
				<td id = "asd" width="25%" style="background-color: blue">选择项目</td>
				<td><select>
						<option value="">请选择</option>
						<c:forEach items="${plist}" var="a">
							<option value=${a.id}>${a.projectName}</option>
						</c:forEach>
				</select> <input name="enter" type="button" value="确定" />
				</td>

			</tr>
		</table>
	</div>
</body>
</html>
